import java.util.Scanner;
import java.util.concurrent.Callable;

public class AAAAAA {
    public static void main(String[] args) {
        Scanner Q = new Scanner(System.in);
        int A;
        System.out.println("请输入一个数字");
        A = Q.nextInt();
        int B;
        System.out.println("请再输入一个数字");
        B = Q.nextInt();
        int C;
        System.out.println("最后再输入一个数字");

         C = Q.nextInt();
        if (A < B && A < C) {
            System.out.println(A);
            if (C < B) {
                System.out.println(C);
                System.out.println(B);
            }
            if (C > B) {
                System.out.println(B);
                System.out.println(C);

            }
        }
        if (B < A && B < C) {
            System.out.println(B);
            if (C < A) {
                System.out.println(C);
                System.out.println(A);
            }
            if (C > A) {
                System.out.println(A);
                System.out.println(C);

            }
        }
        if (C < B && C < A) {
            System.out.println(C);
            if (B < A) {
                System.out.println(B);
                System.out.println(A);
            }
            if (B > A) {
                System.out.println(A);
                System.out.println(B);

            }
        }
    }
}
